package com.WJY.dao;

import com.WJY.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface UserMapper {

    //查询全部用户
    List<User> getUserList();

    //根据id查询用户
    User getUserById(@Param("id") int id);

    //新增一个User
    int addUser(User user);

    //修改User
    int updateUser(User user);

    //删除User
    int deleteUser(@Param("id") int id);
}
